function Link(element){
	var url = new Object();		// The form action formatted as an anchor element
	var form = new Object();	// The HTML form which contains the link (form action)
	this.status = new String();	// The status of the Link (Secure, Insecure, Suspicious, Compromised)
	
	// Initialize Attributes
	url = document.createElement("a");
	form = element;
	url.href = form.getAttribute("action"); // JavaScript form action? How about empty form action?
	
	/**
	 * Changes the Link's protocol to HTTPS.
	 * @author Daniel Fairweather
	 */
	this.setHTTPS = function(){
		url.protocol = "https";
		form.setAttribute("action", url.href);
		if(this.status != "Suspicious"){
			this.status = "Secure";
		}
	}
	
    
    
    /**
     * Returns the HTML form associated with the Link.
     * @author Daniel Fairweather
     * @returns The form associated with the Link.
     */
	this.getForm = function(){
		return(form);
	}
	
	
	
	/**
	 * Returns the hostname of the url. (https://www.facebook.com/index.php -> www.facebook.com)
	 * @author Daniel Fairweather
	 */
	this.getHostname = function(){
		return(url.hostname);
	}
	
	
	
	/**
	 * Returns the protocol of the url.
	 * @author Sterling Rinehart
	 * @returns {String} Protocol as a string. ("https" or "http")
	 */
	this.getProtocol = function(){
		return(url.protocol.substring(0, url.protocol.length-1));
	}
	
	
	
	/**
	 * Updates the URL to reflect changes in the form action.
	 * @author Sterling Rinehart
	 */
	this.update = function(){
		url.href = form.getAttribute("action");
	}
    
    
    
    /**
     * Returns the Link object as a string.
     * @author Daniel Fairweather
     * @returns {String} The Link as a string.
     */
     this.toString = function(){
        return(this.getProtocol() + "://" + this.getHostname());
     }
}